<?php

namespace App\Models;


use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\Storage;

class Banner extends Base
{
    use SoftDeletes;
    protected $table = 'banner';
    protected $appends = ['banner_url'];

    public function getBannerUrlAttribute() {
        return Storage::disk('upload_banner')->url($this->logo);
    }
}
